package com.cxrj.zhsq.autonomy.service;

import java.text.ParseException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cxrj.zhsq.autonomy.entity.AutonomyCommittee;
import com.cxrj.zhsq.autonomy.entity.AutonomyCommitteeOrderWithBLOBs;
import com.cxrj.zhsq.autonomy.entity.AutonomyForward;
import com.cxrj.zhsq.autonomy.entity.AutonomyGroup;
import com.cxrj.zhsq.autonomy.entity.AutonomySecretary;

public interface AutonomyService {

	public Map<String, Object> selectSecretaryPager(HttpServletRequest request, HttpServletResponse response);

	public Map<String, Object> selectSecretaryById(String id, HttpServletRequest request);

	public Map<String, Object> updateSecretary(AutonomySecretary autonomySecretary);

	public Map<String, Object> insertSecretary(String userId, String appContent, String pics);

	public Map<String, Object> selectSecretary(String status, String userAccount, Integer dataIndex, Integer pageCount);

	public Map<String, Object> selectCommitteePager(HttpServletRequest request, HttpServletResponse response);

	public Map<String, Object> selectCommitteeById(String id, HttpServletRequest request);

	public Map<String, Object> updateCommittee(AutonomyCommittee autonomyCommittee);

	public Map<String, Object> selectCommitteeAll(HttpServletRequest request);

	public Map<String, Object> insertCommitteeOrder(String userId, String committeeId, String orderTime, HttpServletRequest request) throws ParseException;

	public Map<String, Object> selectCommitteeOrder(String status, String userAccount, Integer dataIndex, Integer pageCount, HttpServletRequest request);

	public Map<String, Object> selectCommitteeOrderById(String id, HttpServletRequest request);

	public Map<String, Object> insertAndUpdateCommittee(AutonomyCommittee autonomyCommittee);

	public Map<String, Object> selectCommitteeOrderPager(HttpServletRequest request, HttpServletResponse response);

	public Map<String, Object> updateCommitteeOrder(AutonomyCommitteeOrderWithBLOBs autonomyCommitteeOrder);

	public Map<String, Object> selectForwardPager(HttpServletRequest request, HttpServletResponse response);

	public Map<String, Object> selectForwardById(String id, HttpServletRequest request);

	public Map<String, Object> updateForward(AutonomyForward autonomyForward);

	public Map<String, Object> insertForward(String userId, String appContent, String pics);

	public Map<String, Object> selectGroupPager(HttpServletRequest request, HttpServletResponse response);

	public Map<String, Object> selectGroupById(String id, HttpServletRequest request);

	public Map<String, Object> insertAndUpdateGroup(AutonomyGroup autonomyGroup);
	
	public Map<String, Object> selectGroup(String name);
}
